#include "ScnsMpu6050.c.h"

#if defined(SCNS_MPU6050_ENABLE)&&SCNS_MPU6050_ENABLE==1

#include "ScnsIic.h"

static const uint8 device[SCNS_MPU6050_MAX]={0XD0};

ScnsStatus scnsBspMpu6050Write(ScnsMpu6050Enum mpuN,const uint8*addr,uint8 addrLen,const uint8*data,uint8 dataLen)
{
    return scnsIicWriteTick(SCNS_IIC_SOFT_1,device[mpuN],addr,addrLen,data,dataLen,4);
}

ScnsStatus scnsBspMpu6050Read(ScnsMpu6050Enum mpuN,const uint8*addr,uint8 addrLen,uint8*data,uint8 dataLen)
{
    return scnsIicReadTick(SCNS_IIC_SOFT_1,device[mpuN],addr,addrLen,data,dataLen,4);
}

#endif
